﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace work2
{
    class Program
    {
        static void Main(string[] args)
        {
            //     定义一个图书类，存放图书的编号、书名、价格、出版社、作者信息；
            //对价格进行赋值限制，小于0价格，赋值为0
            //在图书类中定义一个方法输出图书信息；
            //在主方法实例化对象，赋值并输出
            Book book = new Book();
            book.bookid = 001;
            book.bookname = "篮球规则书";
            book.Bookprice = 48;
            book.author = "XXX";
            book.Print();
            Book book1 = new Book();
            book1.bookid = 002;
            book1.bookname = "百草纲目";
            book1.Bookprice = 98;
            book1.author = "李时珍";
            book1.Print();









            Console.ReadKey();
        }
    }
}
